<template>
	<view>
		<view class="detail_con">
			<b>{{detail.mess_title}}</b>
			<font>{{detail.mess_setTime.replace('T',' ')}}</font>
		</view>
		<view class="detail_html">
			<rich-text :nodes="nodes"></rich-text>
		</view>
	</view>
</template>

<script>
	var parserHtml = require("@/GraceUI5/js/parserHTML.js");

	export default {
		data() {
			return {
				detail: {},
				nodes: ''
			}
		},
		onReady() {
			uni.setNavigationBarTitle({
				title: this.$t('message')
			})
		},
		onLoad(options) {


			var _this = this;
			_this.fun_request("/Api/Message/Get", {
				id: options.id
			}, function(res) {
				console.log(res);
				_this.detail = res.data;
				// 强化 richText
				_this.nodes = parserHtml.parserHTML(_this.detail.mess_content);
			});
		},
	}
</script>
</script>

<style>
	
</style>
